import React from 'react';
import {Route, Switch} from 'react-router-dom';

import PromotionPositionList from 'pages/promotion-position/list/PromotionPositionList';
import OrderList from 'pages/order/list/OrderList';
import WithdrawList from 'pages/withdraw/list/WithdrawList';
import ErrWithdrawList from 'pages/err/withdraw/list/ErrWithdrawList';
import Router from 'router/router';
import * as css from './css/content';

function Content() {
    return (
        <css.Content>
            <css.Container>
                <Switch>
                    <Route
                        path={Router.PromotionPositionList.path}
                        component={PromotionPositionList}
                    />
                    <Route path={Router.OrderList.path} component={OrderList}/>
                    <Route path={Router.WithdrawList.path} component={WithdrawList}/>
                    <Route path={Router.ErrWithdrawList.path} component={ErrWithdrawList}/>
                </Switch>
            </css.Container>
        </css.Content>
    );
}

export default Content;
